//
// Created by 束庆乐 on 2024/12/24.
//

#include "stdio.h"

int main46(){
    int a = 10;
    float b = 3.14f;
    char c = 'A';

    int *ptrA;
    float *ptrB;
    char *ptrC;
    ptrA = &a;
    ptrB = &b;
    ptrC = &c;
    //输出指针
    printf("ptrA指向的地址==%p\n",ptrA);
    printf("ptrB指向的地址==%p\n",ptrB);
    printf("ptrC指向的地址==%p\n",ptrC);

    //通过指针访问变量值
    printf("ptrA指向的变量值:%d\n",*ptrA);
    printf("ptrB指向的变量值:%.2f\n",*ptrB);
    printf("ptrC指向的变量值:%c\n",*ptrC);
    return 0;
}
